home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Newton Sample Code 1.2 / Views / SyncScroll-1 / README.SyncScroll < prev    next >
Encoding:
Text File  |  1994-07-07  |  819 b   |  17 lines  |  [TEXT/R*ch]

  1. SyncScroll
  2.  
  3. This example shows how to use SyncScroll with your views. Note that SyncScroll
  4. takes an array of view templates, not child views, in order to scroll them. This
  5. means the height slot must be stored in each NTK template, not the view itself.
  6. This means that in order for the height slot to match the viewbounds, you
  7. probably want to set the height in afterscripts based on the viewbounds slot.
  8.  
  9. Also note that there is an omission in version 1.0 of the Newton Programmer's
  10. Guide SyncScroll documentation. If you use an array argument instead of a cursor
  11. the view that recieves the SyncScroll message must have a slot called index.
  12. This is initially set to the index of the first child displayed. Each call to
  13. SyncScroll will modify this value to be the child displayed at the top.
  14.  
  15. J. Christopher Bell
  16. PIEDTS
  17.